package service;

import android.app.Service;
import com.lidroid.xutils.DbUtils;

import application.UIApplication;

/**
 * Created by yanglei on 15/9/25.
 */
public abstract class UIService extends Service{

    public static final float KB=1024f;
    public static final float MB=1024f*KB;
    private DbUtils dbUtils;

    public DbUtils getDB(){
        if(this.dbUtils==null){
            try {
                this.dbUtils= UIApplication.getDB();
            }
            catch (Exception e){}

        }
        return this.dbUtils;
    }


}
